package com.weixing.mall.provider.job;

import com.weixing.mall.provider.api.service.AgentServiceRpc;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * 代理商晋升通知消息任务
 */
public class AgentExpireMsgJob extends QuartzJobBean {
    @Autowired
    private AgentServiceRpc agentServiceRpc;

    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        agentServiceRpc.expireTask();
        System.out.println("代理商到期任务已执行");
    }
}
